export const table_config = () => {
    const config = {
        pageSize: 10,
        pageNum: 1,
        total: 1000,
        rowKey: "deptId", //如果需要树型数据填写这个，否则为空
        defaultColumnWidth: 250,//默认的列宽

        //UI
        defaultExpandAll: true, //是否默认展开所有行
        pagingShow: true,//本页1-2
        totalShow: true,//共10条数据
        paginationShow: true,//分页

        searchList: [
            {placeholder: '请输入字典名称', label: '字典名称', key: 'dictName', type: 'text'},
            {placeholder: '请输入字典类型', label: '字典类型', key: 'dictType', type: 'text'}
        ],
        buttonList: [
            {name: '刷新数据', type: 'primary', plain: true, emitLabel: 'refresh'},
            {name: '新增字典', type: 'primary', emitLabel: 'add'}
        ],
        tableList: [
            {label: '字典编号', key: 'dictId'},
            {label: '字典名称', key: 'dictName', link: true, emitLabel: 'link'},
            {label: '字典类型', key: 'dictType', link: true, emitLabel: 'link'},
            {label: '状态', key: 'status', dicKey: "sys_normal_disable"},
            {label: '备注', key: 'remark'},
            {label: '创建时间', key: 'createTime'}
        ],
        tableButton: {
            name: '操作',
            list: [
                {name: '修改', type: 'success', emitLabel: 'edit', childrenDisplay: false,power:"system:dict:edit"},
                {name: '字典查询', type: 'primary', emitLabel: 'query', childrenDisplay: false}
            ]
        }
    }
    return config
}